package cn.edu.buu.hospital.entity;
import java.io.Serializable;
public class Hospital implements Serializable {
    // 医院ID（主键）
    private Long hospitalid;
    // 医院名称
    private String hospitalname;
    // 医院地址
    private String address;
    // 医院联系电话
    private String hphone;
    // 无参构造方法
    public Hospital() {
    }
    // 全参构造方法
    public Hospital(Long hospitalid, String hospitalname, String address, String hphone) {
        this.hospitalid = hospitalid;
        this.hospitalname = hospitalname;
        this.address = address;
        this.hphone = hphone;
    }
    // getter和setter方法
    public String getHospitalname() {
        return hospitalname;
    }
    public Long getHospitalid() {
        return hospitalid;
    }
    
    // 为了兼容JSP页面中的驼峰命名属性
    public Long getHospitalId() {
        return hospitalid;
    }
    public void setHospitalid(Long hospitalid) {
        this.hospitalid = hospitalid;
    }
    // 添加驼峰命名的getter方法，兼容前端页面访问
    public String getHospitalName() {
        return hospitalname;
    }
    
    // 添加驼峰命名的setter方法，兼容前端页面访问
    public void setHospitalName(String hospitalName) {
        this.hospitalname = hospitalName;
    }
    
    public void setHospitalname(String hospitalname) {
        this.hospitalname = hospitalname;
    }
    
    // 添加驼峰命名的setter方法，兼容前端页面访问
    public void setHospitalId(Long hospitalId) {
        this.hospitalid = hospitalId;
    }
    public String getAddress() {
        return address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    public String getHphone() {
        return hphone;
    }
    
    public void setHphone(String hphone) {
        this.hphone = hphone;
    }
    // toString方法
    @Override
    public String toString() {
        return "Hospital{" +
                "hospitalid=" + hospitalid +
                ", hospitalname='" + hospitalname + '\'' +
                ", address='" + address + '\'' +
                ", hphone='" + hphone + '\'' +
                '}';
    }
}